package org.example.springbootpra1.demos.bean.myAccount;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Builder;
import lombok.Data;
import sun.util.calendar.LocalGregorianCalendar;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;


/**
 * 充电桩对象 charging_pile
 *
 * @author zdcloud
 * @date 2024-09-18
 */

//id: 3,
//type: '微信充值',
//date: '2023-05-11 18:16:19',
//amount: '+10',
//icon: 'https://example.com/icon3.png'
@Data
@Builder
public class RechargeRecord implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    @TableId(value = "id")
    private Long id;

    private BigDecimal amount;

//    @ApiModelProperty(value = "状态  1:充值  0:支付")
    private Integer type;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime date;

}